.login-page {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
  display: flex;
  justify-content: center;
  align-items: center;

  .login-box {
    width: 456px;
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 48px 72px;
    animation: fadeIn 0.6s var(--transition-timing);
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform, opacity;

    @keyframes fadeIn {
      from {
        opacity: 0;
        transform: translateY(-24px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .logo-box {
      text-align: center;
      margin-bottom: 48px;

      .sys-name {
        font-size: 32px;
        font-weight: 600;
        color: #32C5FF;
        margin-bottom: 16px;
        letter-spacing: 2px;
        font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
        text-shadow: 0 2px 4px rgba(50, 197, 255, 0.2);
        animation: slideInDown 0.8s var(--transition-timing);
      }

      .sys-sub-name {
        font-size: 16px;
        color: #606266;
        font-style: italic;
        font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
        animation: slideInUp 0.8s var(--transition-timing);
      }

      @keyframes slideInDown {
        from {
          opacity: 0;
          transform: translateY(-20px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      @keyframes slideInUp {
        from {
          opacity: 0;
          transform: translateY(20px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }
    }

    .form-box {
      .form-item {
        position: relative;
        margin-bottom: 24px;
        border-bottom: 2px solid #eee;
        transition: all var(--transition-duration) var(--transition-timing);

        &.focused {
          border-color: #32C5FF;

          .el-icon {
            color: #32C5FF;
            transform: translateY(-50%) scale(1.1);
          }
        }

        .el-icon {
          font-size: 20px;
          position: absolute;
          left: 0;
          top: 50%;
          transform: translateY(-50%);
          transition: all var(--transition-duration) var(--transition-timing);
          color: #909399;
        }

        :deep(.el-input__wrapper) {
          box-shadow: none !important;
          padding-left: 30px;
          background: transparent;
          transition: all var(--transition-duration) var(--transition-timing);

          &.is-focus {
            box-shadow: none !important;
          }

          .el-input__inner {
            height: 40px;
            font-size: 14px;
            color: #606266;
            font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
            transition: all var(--transition-duration) var(--transition-timing);

            &::placeholder {
              color: #909399;
              transition: opacity var(--transition-duration) var(--transition-timing);
            }

            &:focus::placeholder {
              opacity: 0.7;
            }
          }
        }

        .code-btn-box {
          position: absolute;
          right: 0;
          top: 50%;
          transform: translateY(-50%);
          cursor: pointer;
          color: #32C5FF;
          font-size: 14px;
          transition: all var(--transition-duration) var(--transition-timing);
          padding: 6px 10px;
          border-radius: 4px;
          user-select: none;

          &:hover {
            background-color: rgba(50, 197, 255, 0.1);
            transform: translateY(-50%) scale(1.02);
          }

          &:active {
            transform: translateY(-50%) scale(0.98);
          }

          &.loading, &.disabled {
            cursor: not-allowed;
            opacity: 0.6;
          }

          &.disabled:hover {
            background-color: transparent;
            transform: translateY(-50%);
          }
        }
      }

      .submit-box {
        margin-top: 48px;
        width: 100%;
        height: 48px;
        background: #32C5FF;
        border-radius: 8px;
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        color: #fff;
        font-size: 16px;
        transition: all var(--transition-duration) var(--transition-timing);
        box-shadow: 0 4px 12px rgba(50, 197, 255, 0.3);
        user-select: none;
        position: relative;
        overflow: hidden;

        &::before {
          content: '';
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
          transform: translateX(-100%);
          transition: transform 0.6s var(--transition-timing);
        }

        &:hover {
          background: #1890ff;
          transform: translateY(-2px);
          box-shadow: 0 6px 16px rgba(50, 197, 255, 0.4);

          &::before {
            transform: translateX(100%);
          }
        }

        &:active {
          transform: translateY(0) scale(0.98);
          box-shadow: 0 2px 8px rgba(50, 197, 255, 0.3);
        }

        &.loading {
          cursor: not-allowed;
          opacity: 0.8;
          transform: none;
          box-shadow: 0 4px 12px rgba(50, 197, 255, 0.2);
        }

        .is-loading {
          animation: rotating 2s linear infinite;
        }

        @keyframes rotating {
          from {
            transform: rotate(0deg);
          }
          to {
            transform: rotate(360deg);
          }
        }
      }
    }
  }
}

<style lang="scss" scoped>
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-light) 0%, #ffffff 100%);
  padding: var(--spacing-xl);
  animation: fadeIn 0.6s var(--transition-timing);

  .login-box {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-card);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
    animation: slideInUp 0.6s var(--transition-timing);

    .logo {
      text-align: center;
      margin-bottom: var(--spacing-xl);
      animation: slideInDown 0.6s var(--transition-timing);

      img {
        width: 64px;
        height: 64px;
        margin-bottom: var(--spacing-md);
        transition: transform var(--transition-duration) var(--transition-timing);

        &:hover {
          transform: rotate(15deg) scale(1.1);
        }
      }

      .sub-name {
        font-size: 24px;
        font-weight: 600;
        color: var(--text-primary);
        margin-bottom: var(--spacing-sm);
      }

      .description {
        font-size: 14px;
        color: var(--text-secondary);
      }
    }

    .form-box {
      .form-item {
        margin-bottom: var(--spacing-lg);
        position: relative;

        .el-input {
          .el-input__wrapper {
            padding: var(--spacing-sm) var(--spacing-md);
            border-radius: var(--border-radius-base);
            transition: all var(--transition-duration) var(--transition-timing);
            box-shadow: 0 0 0 1px var(--border-color);

            &:hover {
              box-shadow: 0 0 0 1px var(--primary-color);
            }

            &.is-focus {
              box-shadow: 0 0 0 2px var(--primary-light);
            }
          }

          .el-input__prefix {
            color: var(--text-light);
            transition: all var(--transition-duration) var(--transition-timing);
          }

          &:focus-within {
            .el-input__prefix {
              color: var(--primary-color);
              transform: scale(1.1);
            }
          }
        }

        .el-form-item__error {
          color: #f56c6c;
          font-size: 12px;
          margin-top: var(--spacing-xs);
          animation: shake 0.6s var(--transition-timing);
        }
      }

      .submit-box {
        margin-top: var(--spacing-xl);

        .submit-btn {
          width: 100%;
          height: 44px;
          background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
          border: none;
          border-radius: var(--border-radius-base);
          color: white;
          font-size: 16px;
          font-weight: 500;
          cursor: pointer;
          transition: all var(--transition-duration) var(--transition-timing);
          position: relative;
          overflow: hidden;

          &::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(
              90deg,
              transparent,
              rgba(255, 255, 255, 0.2),
              transparent
            );
            transition: 0.5s;
          }

          &:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-base);

            &::before {
              left: 100%;
            }
          }

          &:active {
            transform: scale(var(--active-scale));
          }

          &.is-loading {
            background: var(--primary-color);
            cursor: not-allowed;

            &::before {
              display: none;
            }
          }
        }
      }
    }
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media screen and (max-width: 480px) {
  .login-page {
    padding: var(--spacing-md);

    .login-box {
      padding: var(--spacing-lg);
    }
  }
}
</style> 